<template>
	<div class="mywallet">
		<div class="item">
			<span>我的钱包</span>
			<i class="iconfont icon-jiantouyou"></i>
		</div>
		<template v-if="online">
			<div class="item-list">
				<section>
					<p>99元</p>
					<i>余额</i>
				</section>
				<section>
					<p>8张</p>
					<i>优惠券</i>
				</section>
				<section>
					<p>6个</p>
					<i>游侠币</i>
				</section>
			</div>
		</template>
	</div>
</template>

<script>
export default{
	name:'Mywallet',
	computed:{
		online(){
			return this.$store.state.on_line;
		}
	}
}
</script>

<style scoped>
.mywallet{
	width: 100%;
	margin-top: 0.5rem;
	background-color: white;
}
.item{
	width: 95%;
	margin: 0 auto;
	display: flex;
	line-height: 1.2rem;
	align-content: center;
	justify-content: space-between;
	font-weight: bold;
	font-size: 0.4rem;
}
.item i{
	font-size: 0.2rem;
}
.item-list{
	width: 80%;
	margin: 0.1rem auto 0;
	padding-bottom: 0.3rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.item-list section{
	font-size: 0.4rem;
	text-align: center;
}
.item-list section i::before{
	width: 0.4rem;
	height: 0.4rem;
	display: inline-block;
	content: '';
	padding-right: 0.1rem;
	background-image: url(../../../assets/img/img11.8d435354.png);
	background-repeat: no-repeat;
	background-size: 0.4rem 0.4rem;
}
.item-list section i{
	display: flex;
	align-items: center;
	font-size: 0.35rem;
	margin-top: 0.2rem;
	line-height: 0.7rem;
}
.item-list section:nth-child(2) i::before{
	background-image: url(../../../assets/img/img12.a25e2682.png);
}
.item-list section:last-child i::before{
	background-image: url(../../../assets/img/img13.f8ff2b44.png);
}
</style>
